package com.ruoyi.project.gzbook.cardsale.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 卡券对象 dg_card_sale
 * 
 * @author mhg
 * @date 2021-10-08
 */
public class DgCardSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 卡券名 */
    @Excel(name = "卡券名")
    private String name;

    /** 满多少元 */
    @Excel(name = "满多少元")
    private Long achieve;

    /** 减多少元 */
    @Excel(name = "减多少元")
    private Long reduce;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String imagePath;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAchieve(Long achieve)
    {
        this.achieve = achieve;
    }

    public Long getAchieve()
    {
        return achieve;
    }
    public void setReduce(Long reduce)
    {
        this.reduce = reduce;
    }

    public Long getReduce()
    {
        return reduce;
    }
    public void setImagePath(String imagePath)
    {
        this.imagePath = imagePath;
    }

    public String getImagePath()
    {
        return imagePath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("achieve", getAchieve())
            .append("reduce", getReduce())
            .append("imagePath", getImagePath())
            .append("createTime", getCreateTime())
            .toString();
    }
}
